home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscRuntimeExtensions.h < prev    next >
Encoding:
Text File  |  1995-04-12  |  1.3 KB  |  39 lines

  1. //
  2. //    MiscRuntimeExtensions.h -- an object category to extend the runtime
  3. //        Written by Don Yacktman Copyright (c) 1994 by Don Yacktman.
  4. //                Version 1.0.  All rights reserved.
  5. //
  6. //        This notice may not be removed from this source code.
  7. //
  8. //    This object is included in the MiscKit by permission from the author
  9. //    and its use is governed by the MiscKit license, found in the file
  10. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  11. //    for a list of all applicable permissions and restrictions.
  12. //    
  13.  
  14. #import <objc/Object.h>
  15.  
  16. @interface Object(MiscRuntimeExtensions)
  17.  
  18. + (int)instanceSize;
  19. - (int)instanceSize;
  20. - (int)sizeOf;
  21. - becomeClass:aClass;
  22. - _becomeClass:aClass; // no checking!  Be very careful!!!
  23. - (int)compare:anObject;
  24.  
  25. // Turn on the visual alerts and then unrecognized messages will bring
  26. // up an alert panel instead of just writing something to the console.
  27. // We'll probably add other alerts that get turned on and off by this
  28. // flag in the future, too...
  29. + setMiscVisualAlerts:(BOOL)aFlag;
  30. + (BOOL)miscVisualAlerts;
  31. - doesNotRecognize:(SEL)aSelector;
  32.  
  33. // I named these methods this way instead of -forward... because we aren't
  34. // passing a message on (forwarding) we are initiating a message...
  35. - dispatchToDelegate:aDelegate message:(SEL)message;
  36. - dispatchToDelegate:aDelegate message:(SEL)message with:anObject;
  37.  
  38. @end
  39.